home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Createing Stationery < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Createing Stationery
  2. Sent:        6/24/96 8:44 AM
  3. Received:    6/24/96 8:51 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >How can I tell when my ODF part is being launched to create stationery as
  9. >opposed to being launched from an existing file?
  10. >
  11. >-Neal
  12.  
  13. There is no way to know that and this is not an ODF limitation. One could 
  14. thing that ODPart::InitPart is called when a stationery is created and 
  15. ODPart::InitPartFromStorage is called when a document (or stationery is 
  16. opened) but this is not true. InitPart can also be called if another part 
  17. instantiates your part by calling ODDraft::CreatePart. 
  18.  
  19. In ODF 2 I have added a parameter to FW_CPart::Initialize telling you if 
  20. it was called by ODPart::InitPart or InitPartFromStorage but that still 
  21. doesn't tell you if you were called to create a stationery or not.
  22.  
  23. ........................................................................
  24.  Henri Lamiraux                                      lamiraux@apple.com
  25.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  26. ........................................................................
  27.  
  28.